package cn.electronic.sale.mapper;

import cn.electronic.sale.pojo.Goods;
import cn.electronic.sale.pojo.GoodsUpload;
import cn.electronic.sale.pojo.GoodsUploadExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.junit.runners.Parameterized.Parameters;

public interface GoodsUploadMapper {
    int countByExample(GoodsUploadExample example);

    int deleteByExample(GoodsUploadExample example);
    
    void deleteByGoodsId(Integer goodsId); 
    
    int insert(GoodsUpload record);

    void insertSelective(GoodsUpload goodsUpload) throws Exception;

    List<GoodsUpload> selectByExample(GoodsUploadExample example);
   
    int updateByExampleSelective(@Param("record") GoodsUpload record, @Param("example") GoodsUploadExample example);

    int updateByExample(@Param("record") GoodsUpload record, @Param("example") GoodsUploadExample example);
    
    //这个需要在xml实现
    int updateInfoByGoodsId(GoodsUpload goodsUpload) throws Exception;
}